package dem2;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-04-02
 * Time: 22:31
 */

abstract class Work {
    Work(){

    }
    abstract public void doWork();
}

abstract class Worker extends Work{

}
interface Irun{

}
interface Ijump{

}
interface Iswim{
    //private void freeStyle();
    void frogSwim();
    public static final String name = "woshizhazhahui";
    int age = 10;
    default void eat(){
        System.out.println("教练，我想打篮球");
    }
}

interface Iexercise extends Irun,Ijump,Iswim{

}

class Z{

}

class Student extends Work implements Iswim,Ijump,Irun{
    @Override
    public void frogSwim() {
        System.out.println("想看看妾身的泳姿吗？");
    }

    @Override
    public void doWork() {

    }
}

public class Test {
    public static void main(String[] args) {
        //Work work = new Work();
    }
}
